package com.drcoffee.drcoffeemall.service;

import com.drcoffee.drcoffeemall.entry.Attachment;
import com.drcoffee.drcoffeemall.entry.Explosion;
import com.drcoffee.drcoffeemall.entry.OCM2Mall;
import com.drcoffee.drcoffeemall.entry.Result;
import com.drcoffee.drcoffeemall.entry.requestBody.PartReq;
import com.github.pagehelper.PageInfo;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/*
 * 配件
 * */
public interface AttachmentService {
    Object getAttachment(PartReq partReq);

    Map<String, Object> getAttachmentById(String language, Integer dot_id);

    ResponseEntity<Object> getAttachmentAll(String search, Integer currentPage, Integer pageSize);

    Map<String, Object> updatepartimgurl(String image_url, String part_code);

    Map<String, Object> editInfo(Attachment attachment);

    Map<String, Object> updateOCM(Attachment attachment);

    List<OCM2Mall> getNewList();

    Map<String, Object> refreshList(List<OCM2Mall> list);

    /* 添加配件 */
    ResponseEntity<Object> insertParts(MultipartFile file, String file_name, Map<String, Object> part) throws IOException;

    ResponseEntity<Object> dataCheck();


    ResponseEntity<Object> getErpParts(Map<String, Object> paramMap);


    ResponseEntity<Object> getErpInventory(Map<String, Object> paramMap);


}
